In two-dimensional analytic geometry, the simplest curves can be represented as graphs of functions of one variable. In three-dimensional analytic geometry, the simplest surfaces can be represented as graphs of functions of two variables. This notebook explores such surfaces.
Mathematica knows that the expression x^2 is a function of two variables (x and y) because we used the Plot3D command (instead of the Plot command) and because we have provided ranges for both x and y. The notation {x,-2,2} means to graph the function for the range -2 <= x <= 2, and the notation {y,0,3} means to graph the function for the range 0 <= y <= 3.
Notice that the perspective image shows the X-axis at the front bottom of the box running downward to the right. The Y-axis (through the points where x=z=0) is not drawn, but it lies in the middle of the bottom of the box running upward to the right. The Z-axiz (through the points where x=y=0) is also not drawn; it runs upward through the middle of the front of the box.
This surface is a parabolic cylinder. That is, it is the set of all lines perpendicular to the XZ-plane that pass through the parabola z = x^2 in that plane. Fifteen of these parallel lines are actually drawn on the surface. The parabola also appears fifteen times on the surface.
Here the paralllel lines (in the Y direction) have all been bent a little into parabolic arcs. The one through the origin has the equation z = y^2 /10. Notice that we changed the range on y to be the same as the range on x .
The third example is like the second, except that now the upside down parabolas (in the Y direction) are more curved. The one through the origin has the equation z = y^2 .
All of the surfaces drawn above are examples of hyperbolic paraboloids. (A parabolic cylinder is a special kind of hyperbolic paraboloid.) They are called "paraboloids" because their vertical cross-sections are parabolas. They are called "hyperbolic" because their horizontal cross-sections are hyperbolas. Horizontal cross-sections are also called "level curves" because each is a curve obtained by projecting onto the XY-plane all the points on the surface that are at a given level (i.e. Z-value). Level curves are often used to produce a two-dimensional representation of a surface.
Here's the contour plot of the third hyperbolic paraboloid shown in the previous section:
:[font = input; preserveAspect; ]
ContourPlot[ x^2-y^2, {x,-2,2}, {y,-2,2} ];
:[font = text; inactive; preserveAspect; ]
The ContourPlot command produces a topographical map, coloring the high places in lighter shades and the low places in darker shades. The lines are the level curves.
All the curves shown in the above example are hyperbolas. For example, the level curve at the level z=1 on the surface would have the equation x^2 - y^2 = 1. That is the inner-most hyperbola among those that are symmetric about the X-axis.
In the last example, both the surface and the level curves were rather jagged. That is because Mathematica automatically approximates curves and surfaces with line segments and flat (planar) panels, and it uses the default number of 15 in each dimension. The rendering can be made smoother by means of the PlotPoints option:
These two pictures are much smoother because we used more than twice the number of "sampling points" in each dimension. Of course, the trade-off is that it takes Mathematica longer to draw the pictures.
For each of the following, (a) define the function; (b) draw its graph in the range given; (c) draw its level curves in the same range. If the picture is not smooth enough, use the PlotPoints option to make it smoother.
The ContourPlot command has a large number of options that may be used to obtain different results. One of the most useful is the Contours option. It can be used to specify precisely which level curves are to be shown.